package jd.client.util;

import jd.client.get.GetDownloadStatusResponse;

/**
 * @author Denis Migol
 * 
 */
public final class DownloadStatusUtil {
	private DownloadStatusUtil() {
	}

	public static String toString(final Integer status) {
		if (status == null) {
			return "null";
		}
		switch (status.intValue()) {
		case GetDownloadStatusResponse.RUNNING:
			return "Running";
		case GetDownloadStatusResponse.NOT_RUNNING:
			return "Not Running";
		case GetDownloadStatusResponse.STOPPING:
			return "Stopping";
		default:
			return status.toString();
		}
	}
}
